1
general::
Also, good gracious;gracious sakes. Exclamation of surprise, dismay, or alarm, as in Goodness gracious! You've forgotten your ticket. Both goodness and gracious originally alluded to the good (or grace) of God, but these colloquial expressions, which date from the 1700s, are not considered either vulgar or blasphemous.
American Heritage Idioms